package com.lxg.dao.impl;

import com.lxg.dao.BookDao;

import java.util.*;

/**
 * @author 陆小根
 * date: 2022/04/23
 * Description:
 */

public class BookDaoImpl implements BookDao {

  private int[] array;

  private List<String> list;

  private Set<String> set;

  private Map<String, String> map;

  private Properties properties;

  public void setArray(int[] array) {
    this.array = array;
  }

  public void setList(List<String> list) {
    this.list = list;
  }

  public void setSet(Set<String> set) {
    this.set = set;
  }

  public void setMap(Map<String, String> map) {
    this.map = map;
  }

  public void setProperties(Properties properties) {
    this.properties = properties;
  }

  @Override
  public void save() {
    System.out.println("bookDao save....");
    System.out.println("遍历数组: " + Arrays.toString(array));
    System.out.println("遍历List: " + list);
    System.out.println("遍历Set: " + set);
    System.out.println("遍历Map: " + map);
    System.out.println("遍历Properties: " + properties);
  }


}
